package spring.cloud.tasks.api.database.repository;

import org.springframework.stereotype.Repository;
import spring.cloud.tasks.api.database.entity.NameSpaceZooKeeperClusterMappingDto;

import java.util.List;

@Repository
public interface NameSpaceZooKeeperClusterMappingDtoRepository {
    Integer insert(NameSpaceZooKeeperClusterMappingDto nameSpaceZooKeeperClusterMappingDto);

    Integer updateByNameSpaceKey(NameSpaceZooKeeperClusterMappingDto spaceZooKeeperClusterMappingDto);

    Integer deleteByNameSpaceKey(String nameSpaceKey);

    List<NameSpaceZooKeeperClusterMappingDto> selectAll();

    NameSpaceZooKeeperClusterMappingDto selectByNameSpaceKey(String nameSpaceKey);

    List<NameSpaceZooKeeperClusterMappingDto> selectByZooKeeperClusterKey(String zooKeeperClusterKey);
}
